home *** CD-ROM | disk | FTP | other *** search
- {PLOTWT - plots weight data}
- smooth = off;
- interp = off;
- step = 1;
- label = "J.J. KOCHY'S WEIGHT";
- ylabel="LBS";
- xlabel="1986 - 1990";
- xformat = dates;
-
- file="weight.dat";
- jjkwt = read & scaley(jjkwt) &
- jjkavg = avg(jjkwt) & jjksigma = std.dev(jjkwt);
-
- { plot weight and 1 standard deviation on each side }
- constant(jjksigma);
- tracenum = off;
- plot(jjkwt) & plot(jjkavg) & plot(jjkavg+jjksigma) & plot(jjkavg-jjksigma);
- constant(jjkavg);
- text = "Weight, Avg. Weight, and One Standard Deviation on Each Side";
- note(xposn(.05),yposn(.95));
- text = "Average weight = ";
- note(jjkavg,xposn(.05),yposn(.925));
- text = "Stand deviation = ";
- note(jjksigma,xposn(.05),yposn(.90));
- pause;
- group(read,read,read,read,read) &
- trace = box & plot(grpavg) & trace=line & plot(grpavg) &
- trace=vline & plot(bottom + grpmax - grpmin);
- pause;
-
- erase;
- label = "Weight Distribution";
- ylabel = "Number of Weigh Ins";
- xlabel = "Pounds";
- xformat = nominal;
- interp = off;
- binset(50,150,200);
- bincnt(jjkwt);
- trace = vline;
- plot(bin(t));
- text="Bin Size (in LBs): "; note(10*stepval,xposn(.05),yposn(.95));